package com.app.popo.controller;

import com.app.popo.entity.Products;
import com.app.popo.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ProductsCtorllor {

    @Autowired
    private ProductsService userinfoService;

    @GetMapping("/show")
    public List<Products> show(){

        return userinfoService.getusersList();
    }
}
